﻿using System;

namespace Hydrogen.Cmd.Interfaces
{
    /// <summary>
    /// 命令的符号
    /// </summary>
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
    public class CommandFlagAttribute : Attribute
    {
        /// <summary>
        /// 支持多个符号指向同一个命令
        /// </summary>
        public string[] Flags;
        /// <summary>
        /// 构造方法
        /// </summary>
        /// <param name="flags"></param>
        public CommandFlagAttribute(params string[] flags)
        {
            Flags = flags;
        }
    }
}
